// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// import {Table, List, Icon, Tabs} from 'view-design'
// import './font/iconfont.css'
// import 'view-design/dist/styles/iview.css'
// import './my-theme/dist/iview.css'
import axios from 'axios'
import VueAxios from 'vue-axios'
import ECharts from 'vue-echarts'
import 'echarts/lib/chart/line'
import 'echarts/lib/chart/bar'
import 'echarts/lib/chart/pie'
import 'echarts/lib/chart/gauge'
import 'echarts/lib/chart/scatter'
import 'echarts/lib/component/tooltip'
import 'echarts/lib/component/title'
import 'echarts/lib/component/toolbox'
import 'echarts/lib/component/legend'
import 'echarts/lib/component/graphic'
// import 'xe-utils'
// import VXETable from 'vxe-table'
// import 'vxe-table/lib/index.css'
//
// Vue.use(VXETable)
Vue.component('chart', ECharts)

Vue.use(VueAxios, axios)
// Vue.component('Table', Table)
// Vue.component('List', List)
// Vue.component('ListItem', List.Item)
// Vue.component('ListItemMeta', List.Item.Meta)
// Vue.component('Icon', Icon)
// Vue.component('Tabs', Tabs)
// Vue.component('TabPane', Tabs.Pane)
// Vue.config.productionTip = false

/* eslint-disable no-new */

axios.get('./static/project.config.json').then((result) => {
  Vue.prototype.baseConfig = result.data
  new Vue({
    el: '#app',
    components: { App },
    template: '<App/>'
  })
}).catch((error) => {
  console.log('get baseConfig error...' + error)
})
